package com.filldream.sun.bean.baiduMap;

import com.filldream.sun.core.JsonUtil;

/**
 * 百度地图-经纬度定位
 * @author RickSun
 * @see 2019-10-13
 */
public class V2 {


    /**
     * 结果状态返回码： 0-正常 101-AK参数不存在 301-永久配额超限，限制访问 302-天配额超限，限制访问
     * http://lbsyun.baidu.com/index.php?title=webapi/guide/webservice-geocoding-abroad&diff=12979&oldid=12918
     */
    private Integer status;

    /**
     * 结构化地址信息:"浙江省湖州市德清县葛塍线"
     */
    private String formattedAddress;

    /**
     * 坐标所在商圈信息，如 "人民大学,中关村,苏州街"。最多返回3个。
     */
    private String business;

    /**
     * 国家名称
     */
    private String country;

    /**
     * 国家代码(iso|iso2):CHN|CHN
     */
    private String countryCode;

    /**
     *  省份:"浙江省"
     */
    private String province;

    /**
     *  城市: "杭州市"
     */
    private String city;

    /**
     * 城市等级
     */
    private Integer cityLevel;


    /**
     *  区县
     */
    private String district;

    /**
     *  街道
     */
    private String street;

    /**
     * 门牌号
     */
    private String streetNumber;

    /**
     * 指南备注
     */
    private String sematicDescription;

    /**
     * 邮政编码
     */
    private String adcode;


    @Override
    public String toString() {
        return JsonUtil.toJson(this);
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getFormattedAddress() {
        return formattedAddress;
    }

    public void setFormattedAddress(String formattedAddress) {
        this.formattedAddress = formattedAddress;
    }

    public String getBusiness() {
        return business;
    }

    public void setBusiness(String business) {
        this.business = business;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getCountryCode() {
        return countryCode;
    }

    public void setCountryCode(String countryCode) {
        this.countryCode = countryCode;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public Integer getCityLevel() {
        return cityLevel;
    }

    public void setCityLevel(Integer cityLevel) {
        this.cityLevel = cityLevel;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public String getStreetNumber() {
        return streetNumber;
    }

    public void setStreetNumber(String streetNumber) {
        this.streetNumber = streetNumber;
    }

    public String getSematicDescription() {
        return sematicDescription;
    }

    public void setSematicDescription(String sematicDescription) {
        this.sematicDescription = sematicDescription;
    }

    public String getAdcode() {
        return adcode;
    }

    public void setAdcode(String adcode) {
        this.adcode = adcode;
    }
}
